package com.raza.plaza.controller;

import com.raza.plaza.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.web.ConditionalOnEnabledResourceChain;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * des. sfs
 * @author       : RazaJin
 * @date         : 2020/12/17 0017 10:28
 */
@RestController
public class PlazaController {

    @Resource
    private UserService userService;

    @GetMapping(value = "/plaza")
    public String echo() {
        return userService.getUser("plaza服务请求到的用户,使用的通信方式为 :feign");
    }
}
